﻿<%@ Page Title="Kirkwood School For Children - Log in" Language="C#" MasterPageFile="~/MasterPages/Site.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Daycare.Account.Login" Async="true" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <asp:Login ID="login" RenderOuterTable="false" runat="server" DestinationPageUrl="~/Default.aspx" OnAuthenticate="login_Authenticate" OnLoggedIn="login_LoggedIn">
        <LayoutTemplate>
            <asp:Panel ID="pLogin" runat="server" DefaultButton="bLogin">
                <div style="display: inline-block">
                    <img src="../img/companyLogo.png" />
                </div>
                <div style="display: inline-block; margin-left: 20px">
                    <h3>Enter Your Credentials</h3>
                    <dl id="login">
                        <dt>User Name:</dt>
                        <dd>
                            <asp:TextBox ID="UserName" runat="server" />
                            <asp:RequiredFieldValidator ID="rfvUserName" runat="server" CssClass="fieldvalidatorlogin" ControlToValidate="UserName" ValidationGroup="vgLogin" ErrorMessage="<em>User name is required</em>" />
                        </dd>
                        <dt>Password:</dt>
                        <dd>
                            <asp:TextBox ID="Password" runat="server" TextMode="Password" />
                            <asp:RequiredFieldValidator ID="rfvPassword" runat="server" ControlToValidate="Password" ValidationGroup="vgLogin" ErrorMessage="<em>Password is required</em>" />
                        </dd>
                        <dt>
                        </dt>
                        <dd>
                            <asp:Literal ID="litFailureText" runat="server" EnableViewState="False" />
                        </dd>
                    </dl>
                    <p class="submit">
                        <asp:Button ID="bLogin" runat="server" CommandName="Login" Text="Login" ValidationGroup="vgLogin" />
                    </p>
                    
                </div>
            </asp:Panel>
        </LayoutTemplate>
    </asp:Login>
</asp:Content>
